package com.kcloud.zkem.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;

/**
 * @author guor
 */
@Component
@ConfigurationProperties(prefix = "kcloud.zkem")
@Validated
public class ZKEMProperties {
    @NotNull private String host;
    @NotNull private int port = 4370;

    public String getHost() {
        return host;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public void setHost(String host) {
        this.host = host;
    }
}
